<?php
namespace app\api\controller\project;

// 底层控制器
use think\Controller;

class Type extends Controller {
    // 构造函数

    public function __construct() {
        // 手动把父类的方法获取过来
        parent::__construct();

        $this->ProjectModel = model( 'Project.Project' );
    }

    public function index() {
        if ( $this->request->isPost() ) {
            $result = $this->ProjectModel->select();

            $this->success( '返回服务选项', null, $result );
            exit;
        }
    }
}
?>